import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission
import { getDicts } from "@/api/system/dict/data"


//uview
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

Vue.use(plugins)

Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.getDicts = getDicts


import * as filters from './common/filter/filters.js'
// 定义全局自定义过滤器
Object.keys(filters).forEach(key => {
	Vue.filter(key, filters[key])
})

Object.keys(filters).forEach(key => {
	Vue.filter(key, filters[key])
})
Vue.prototype.$f = function(key) {
	return filters[key]
}

import dict from "@/api/dict.js"
Vue.prototype.$dict = dict

App.mpType = 'app'

const app = new Vue({
  ...App
})

app.$mount()
